<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>会员信息列表</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.tabfont01 {
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}

.font051 {
	font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}

.font201 {
	font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}

.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}

html {
	overflow-x: auto;
	overflow-y: auto;
	border: 0;
}
-->
</style>

<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

function XXX()
  {
   document.checkIds.submit();
  }
</script>
<script type="text/javascript" src="layer-v1.5.1/layer/layer.min.js"></script>
<%-- <script type="text/javascript">
	//全选
	function checkAll(name) {
		var names = document.getElementsByName(name);
		var len = names.length;
		if (len > 0) {
			var i = 0;
			for (i = 0; i < len; i++) {
				names[i].checked = true;
			}
		}
	}

	//全不选
	function checkAllNo(name) {
		var names = document.getElementsByName(name);
		var len = names.length;
		if (len > 0) {
			var i = 0;
			for (i = 0; i < len; i++) {
				names[i].checked = false;
			}
		}
	}

	//反选
	function reserveCheck(name) {
		var names = document.getElementsByName(name);
		var len = names.length;
		if (len > 0) {
			var i = 0;
			for (i = 0; i < len; i++) {
				if (names[i].checked) {
					names[i].checked = false;
				} else {
					names[i].checked = true;
				}
			}
		}

	}
	
	function userDel() {
		document.allUser.submit();
	}
</script> --%>

</head>
<body>

	<table id="mainpage" width="100%" border="0" cellspacing="0"
		cellpadding="0">
		<tr>
			<td height="30">
			
			<table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
					<form action="user/listUser" name="checkIds">
						<td background="images/nav04.gif" height="62">&nbsp;&nbsp;&nbsp;&nbsp;
						<%-- <span class="newfont07">&nbsp;&nbsp;&nbsp;&nbsp;选择：
								<input type="radio" name="choice" id="ckall"
								onclick="checkAll('userIdStr','ckall')" />全选 <input
								type="radio" name="choice" id="ckReserve"
								onclick="reserveCheck('userIdStr','ckReserve')" />反选 &nbsp; 
								<input name="button" onclick="userDel()" type="button" class="right-button02" value="删除" />
						</span>--%>
						
						<span class="newfont07">邮箱名称: 
						<input  style="height: 14px; padding-top: 0px" name="emailTest" value="test1" type="hidden" />
							 <input  style="height: 14px; padding-top: 0px" name="user.email" type="text" /><input type="submit" class="right-button02" value="查 询" />
							 </span>
						
						</td>						 
						</form>	 
					</tr>
				</table>
				 
				
				
				</td>
		</tr>
		<tr>
			<td>
			
				<table id="subtree1" style="DISPLAY: " width="100%" border="0"
					cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<table width="95%" border="0" align="center" cellpadding="0"
								cellspacing="0">

								<tr>
									<td height="40" class="font42">
										<%-- <form name="allUser" id="allUser" action="user/deleteUser" method="post">--%>
											<table width="100%" border="0" cellpadding="4" align="center"
												cellspacing="1" bgcolor="#464646" class="newfont03">
												<tr>
													<td height="20" colspan="4" align="center"
														bgcolor="#EEEEEE" class="tablestyle_title">会员列表</td>
												</tr>
												<tr>
													<%--<td width="5%" align="center" bgcolor="#EEEEEE">选择</td>--%>
													<!--  
												<td width="10%" align="center" bgcolor="#EEEEEE">编号</td>-->
													<td width="5%" align="center" bgcolor="#EEEEEE">电子邮箱</td>

													<td width="5%" align="center" bgcolor="#EEEEEE">用户昵称</td>
													<td width="5%" align="center" bgcolor="#EEEEEE">用户类型</td>
													<td width="5%" align="center" bgcolor="#EEEEEE">操作</td>
												</tr>
												<c:forEach var="list" items="${requestScope.pages.records}">
													<tr align="center">
														<%-- <td width="5%" align="center" bgcolor="#EEEEEE"><input
															type="checkbox" name="userIdStr" value="${list.userId }" />
														</td>--%>
														<!-- <td width="10%" align="center" bgcolor="#EEEEEE"> ${list.userId}</a></td>-->
														<td width="10%" align="center" bgcolor="#EEEEEE">
															${list.email}</a>
														</td>

														<td width="10%" align="center" bgcolor="#EEEEEE">
															${list.userName}</a>
														</td>
														<td width="10%" align="center" bgcolor="#EEEEEE">
															<c:if test="${list.roleId == 1}">
																黑名单
															</c:if>
															<c:if test="${list.roleId == 2}">
																普通会员
															</c:if>
															<c:if test="${list.roleId == 4}">
																主编
															</c:if>
															<c:if test="${list.roleId == 5}">
																编辑
															</c:if>
															<c:if test="${list.roleId == 6}">
																编委
															</c:if>
														</td>
														<td width="10%" align="center" bgcolor="#EEEEEE"><a
															href="user/detailUser.action?userId=${list.userId }">查看</a>&nbsp;|&nbsp;
															<c:if test="${list.roleId == 1}">
																<a	href="user/findById?userId=${list.userId }">恢复为会员</a>
															</c:if>
															<c:if test="${list.roleId != 1}">
																<a	href="user/findById?userId=${list.userId }">加入黑名单</a>
															</c:if>
															
															
														</td>
													</tr>
												</c:forEach>
											</table>
										<jsp:include page="../../page2.jsp" /></td>
								</tr>
							</table></td>
					</tr>
				</table>
			
				</td>
		</tr>
	</table>
 
</body>
</html>
